home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Development
/
General
/
Script Tools
/
Examples
/
Choose New File Example
< prev
next >
Wrap
Text File
|
1993-09-24
|
472b
|
16 lines
set folderOK to true
try
set newFile to ¬
choose new file with prompt "Please select an new archive file:" ¬
default name "Testing"
on error errText number errNum
display dialog "Choose new file canceled" buttons {"OK"} default button {"OK"}
set folderOK to false
end try
if folderOK then
display dialog "Selected new file: “" & (folder returned of newFile as string) & (¬
filename returned of newFile) & "”" ¬
buttons {"OK"} ¬
default button {"OK"}
end if